package com.sunducation.wts.room.bean2

import androidx.room.Embedded
import androidx.room.Relation
import com.sunducation.wts.room.bean2.Cat
import com.sunducation.wts.room.bean2.Dog
import com.sunducation.wts.room.bean2.Owner

data class OwnerWithDogs(
    @Embedded var owner: Owner,
    @Relation(
        parentColumn = "ownerId",
        entityColumn = "dogOwnerId"
    ) val dogs: List<Dog>,
    @Relation(
        parentColumn = "ownerId",
        entityColumn = "catOwnerId"
    ) val cats: List<Cat>
) {
}